home *** CD-ROM | disk | FTP | other *** search
/ Core Concepts in Art 2 / Core Concepts in Art (Frames of Reference)(The McGraw-Hill Companies)(2004).iso / mac / media / create.swf / scripts / DefineButton2_20 / BUTTONCONDACTION on(release).as
Text File  |  2003-11-06  |  528b  |  25 lines

  1. on(release){
  2.    if(_root._ymouse > scroll_btn._y + 214)
  3.    {
  4.       if(scroll_btn._y < 160 - scroll_btn._height)
  5.       {
  6.          scroll_btn._y += scroll_btn._height;
  7.          _parent.holder_mc._y -= 20;
  8.       }
  9.       else
  10.       {
  11.          scroll_btn._y = 163 - scroll_btn._height;
  12.       }
  13.    }
  14.    else if(scroll_btn._y > 3)
  15.    {
  16.       scroll_btn._y -= scroll_btn._height;
  17.       _parent.holder_mc._y += 20;
  18.    }
  19.    else
  20.    {
  21.       scroll_btn._y = 3;
  22.    }
  23.    _parent._parent._parent.scrollPos = this._y;
  24. }
  25.